#ifndef FORGETPASSWORD_H
#define FORGETPASSWORD_H

#include <QWidget>
#include "forgetpassword2.h"
#include<QTimer>
namespace Ui {
class forgetPassword;
}

class forgetPassword : public QWidget
{
    Q_OBJECT

public:
    //倒计时计数
    static int countNumber;
    explicit forgetPassword(QWidget *parent = 0);
    ~forgetPassword();

    //生成验证码
    QString createCode();

private slots:
    void on_pushButton_next_clicked();

    void on_pushButton_getcode_clicked();
    //计时器run
    void run();

signals:
    void sendEmail(QString);//发送到密码重置界面的数据（信号）,不需要实体函数

    void sendsignal();

private:
    Ui::forgetPassword *ui;

    QTimer * timer;
    //邮箱验证码
    QString code;

    forgetpassword2*fgp2;


};

#endif // FORGETPASSWORD_H
